export default [
  {
    path: '/roll/:page/:type',
    name: 'Roll',
    component: resolve => {
      // require.ensure 是 Webpack 的特殊语法，用来设置 code-split point
      // （代码分块）
      require.ensure(['../views/RollStat'], () => {
        resolve(require('../views/RollStat'))
      })
    }
  },
  {
    path: '/roll/:page/:type/:target_type/:year',
    name: 'RollTargetStat',
    component: resolve => {
      // require.ensure 是 Webpack 的特殊语法，用来设置 code-split point
      // （代码分块）
      require.ensure(['../views/RollTargetStat'], () => {
        resolve(require('../views/RollTargetStat'))
      })
    }
  },
  
  {
    path: '/roll/:page/:type/:target_type/:team_id/:year',
    name: 'RollTargetTeamStat',
    component: resolve => {
      // require.ensure 是 Webpack 的特殊语法，用来设置 code-split point
      // （代码分块）
      require.ensure(['../views/RollTargetTeamStat'], () => {
        resolve(require('../views/RollTargetTeamStat'))
      })
    }
  },
]